/*   
 Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.5
 Version: 1.8.0
 Author: Sean Ngu
 Website: http://www.seantheme.com/color-admin-v1.8/admin/
 */

var blue = '#348fe2',
		blueLight = '#5da5e8',
		blueDark = '#1993E4',
		aqua = '#49b6d6',
		aquaLight = '#6dc5de',
		aquaDark = '#3a92ab',
		green = '#00acac',
		greenLight = '#33bdbd',
		greenDark = '#008a8a',
		orange = '#f59c1a',
		orangeLight = '#f7b048',
		orangeDark = '#c47d15',
		dark = '#2d353c',
		grey = '#b6c2c9',
		purple = '#727cb6',
		purpleLight = '#8e96c5',
		purpleDark = '#5b6392',
		red = '#ff5b57';

var handleBasicChart = function () {
	"use strict";
	var d1 = [];
	for (var x = 0; x < Math.PI * 2; x += 0.25) {
		d1.push([x, Math.sin(x)]);
	}
	var d2 = [];
	for (var y = 0; y < Math.PI * 2; y += 0.25) {
		d2.push([y, Math.cos(y)]);
	}
	if ($('#basic-chart').length !== 0) {
		$.plot($("#basic-chart"), [
			{label: "data 1", data: d1, color: purple, shadowSize: 0},
			{label: "data 2", data: d2, color: green, shadowSize: 0},
		], {
			series: {
				lines: {show: true},
				points: {show: true}
			},
			xaxis: {
				tickColor: '#ddd'
			},
			yaxis: {
				min: -2,
				max: 2,
				tickColor: '#ddd'
			},
			grid: {
				borderColor: '#ddd',
				borderWidth: 1
			}
		});
	}
};

var Chart = function () {
	"use strict";
	return {
		//main function
		init: function () {
			handleBasicChart();
		}
	};
}();
